/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.excel;

import com.bedatadriven.mso.core.MsoCalloutAngleType;
import com.bedatadriven.mso.core.MsoCalloutDropType;
import com.bedatadriven.mso.core.MsoCalloutType;
import com.bedatadriven.mso.core.MsoTriState;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Excel.CalloutFormat*/
public class CalloutFormat extends JavaScriptObject {

	protected CalloutFormat() { }
	public native final Object getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final void automaticLength()/*-{
		this.AutomaticLength( );
	}-*/;

	public native final void customDrop(float drop)/*-{
		this.CustomDrop( drop);
	}-*/;

	public native final void customLength(float length)/*-{
		this.CustomLength( length);
	}-*/;

	protected native final void _presetDrop( int dropType)/*-{
		this.PresetDrop( dropType);
	}-*/;

	public final void presetDrop(MsoCalloutDropType dropType){
		_presetDrop(dropType.getValue());
	}
	protected native final int _getAccent()/*-{
		return this.Accent;
	}-*/;

	public final MsoTriState getAccent(){
		return MsoTriState.valueOf(_getAccent());
	}
	protected native final void _setAccent( int value)/*-{
		this.Accent = value;
	}-*/;

	public final void setAccent(MsoTriState value){
		_setAccent(value.getValue());
	}
	protected native final int _getAngle()/*-{
		return this.Angle;
	}-*/;

	public final MsoCalloutAngleType getAngle(){
		return MsoCalloutAngleType.valueOf(_getAngle());
	}
	protected native final void _setAngle( int value)/*-{
		this.Angle = value;
	}-*/;

	public final void setAngle(MsoCalloutAngleType value){
		_setAngle(value.getValue());
	}
	protected native final int _getAutoAttach()/*-{
		return this.AutoAttach;
	}-*/;

	public final MsoTriState getAutoAttach(){
		return MsoTriState.valueOf(_getAutoAttach());
	}
	protected native final void _setAutoAttach( int value)/*-{
		this.AutoAttach = value;
	}-*/;

	public final void setAutoAttach(MsoTriState value){
		_setAutoAttach(value.getValue());
	}
	protected native final int _getAutoLength()/*-{
		return this.AutoLength;
	}-*/;

	public final MsoTriState getAutoLength(){
		return MsoTriState.valueOf(_getAutoLength());
	}
	protected native final int _getBorder()/*-{
		return this.Border;
	}-*/;

	public final MsoTriState getBorder(){
		return MsoTriState.valueOf(_getBorder());
	}
	protected native final void _setBorder( int value)/*-{
		this.Border = value;
	}-*/;

	public final void setBorder(MsoTriState value){
		_setBorder(value.getValue());
	}
	public native final float getDrop()/*-{
		return this.Drop;
	}-*/;

	protected native final int _getDropType()/*-{
		return this.DropType;
	}-*/;

	public final MsoCalloutDropType getDropType(){
		return MsoCalloutDropType.valueOf(_getDropType());
	}
	public native final float getGap()/*-{
		return this.Gap;
	}-*/;

	public native final void setGap(float value)/*-{
		this.Gap = value;
	}-*/;

	public native final float getLength()/*-{
		return this.Length;
	}-*/;

	protected native final int _getType()/*-{
		return this.Type;
	}-*/;

	public final MsoCalloutType getType(){
		return MsoCalloutType.valueOf(_getType());
	}
	protected native final void _setType( int value)/*-{
		this.Type = value;
	}-*/;

	public final void setType(MsoCalloutType value){
		_setType(value.getValue());
	}
}
